package com.baizhi.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class VideoPO {
    private OneUserPO uploader;
    //视频up主
    private Integer id;
    private String title;
    private String cover;
    private String intro;
    //分类名
    private String category;
    private String link;
    @JsonProperty("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("updated_at")
    private Date updatedAt;
    //播放次数
    @JsonProperty("plays_count")
    private Integer playsCount = 0;
    //点赞次数
    @JsonProperty("likes_count")
    private Integer likesCount = 0;
    private Boolean liked = false;
    private Boolean disliked = false;
    private Boolean favorite = false;
}
